﻿using System.ServiceModel;
using System.ServiceModel.Web;
using Syncronization.Common;

namespace Syncronization.Service
{
    // NOTE: If you change the interface name "IService1" here, you must also update the reference to "IService1" in Web.config.
    [ServiceContract]
    public interface IRestSyncService
    {
        #region public

        /// <summary>
        /// Gets the changes.
        /// </summary>
        /// <param name="syncRequest">The sync request.</param>
        /// <returns></returns>
        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json)]
        [OperationContract]
        mfLYSyncResponse GetChanges(mfLYSyncRequest syncRequest);


        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json)]
        [OperationContract]
        mfLYSyncResponse ApplyChanges(mfLYSyncRequest syncRequest);

        #endregion
    }
}